﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LayoutSettingManager : MonoBehaviour
{
    //这里必须Awake，提前修改按钮位置
    void Awake()
    {
        for (int i = 0; i < 7; i++)
        {
            print(GameData.keyDatas[i].x + " " + GameData.keyDatas[i].y + " " + GameData.keyDatas[i].r);
            this.transform.Find("w" + (i + 1)).localPosition = new Vector3(GameData.keyDatas[i].x, GameData.keyDatas[i].y, 0);
            this.transform.Find("w" + (i + 1)).localScale = new Vector3(GameData.keyDatas[i].r, GameData.keyDatas[i].r, 1);
        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
